package io.kiki.sba.registry.server.clientInterface.acceptor;

import io.kiki.sba.registry.common.model.ClientToClientInterfaceServerNodeId;
import io.kiki.sba.registry.common.model.store.Publisher;


public final class PublisherWriteDataRequest implements WriteDataRequest<Publisher> {
    private final Publisher publisher;
    private final WriteDataRequestType writeDataRequestType;

    public PublisherWriteDataRequest(Publisher publisher, WriteDataRequestType writeDataRequestType) {
        this.publisher = publisher;
        this.writeDataRequestType = writeDataRequestType;
    }

    @Override
    public Publisher getClientOffPublishers() {
        return publisher;
    }

    @Override
    public WriteDataRequestType getWriteDataRequestType() {
        return writeDataRequestType;
    }

    @Override
    public ClientToClientInterfaceServerNodeId getClientToClientInterfaceServerNodeId() {
        return publisher.getClientToClientInterfaceServerNodeId();
    }
}
